// 导入axios实例
import httpRequest from "../request/index";


// 全局url
export function fileUrl(){
  return 'https://gse-oss-pub.oss-accelerate.aliyuncs.com/'
}

/***********    登录注册    *********/

// 获取验证码
export function getRandomImg(params: any) {
  return httpRequest({
    url: "/cc/getRandomImg",
    method: "get",
    params,
  });
}
// 获取登录信息
export function login(data: any) {
  return httpRequest({
    url: "/pnc/login",
    method: "post",
    data,
  });
}
// 获取手机验证码
export function getCode(data: any) {
  return httpRequest({
    url: "/pnc/getCode",
    method: "post",
    data,
  });
}

// 忘记密码
export function forgetPassword(data: any) {
  return httpRequest({
    url: "/pnc/changePwd",
    method: "post",
    data,
  });
}

// 注册
export function register(data: any) {
  return httpRequest({
    url: "/pnc/register",
    method: "post",
    data,
  });
}

// 获取审核信息
export function getPartnerInfo(data: any) {
  return httpRequest({
    url: "/pnc/getPartnerInfo",
    method: "post",
    data,
  });
}
// 获取审核信息
export function updatePartnerInfo(data: any) {
  return httpRequest({
    url: "/pnc/updatePartnerInfo",
    method: "post",
    data,
  });
}


/***********    竞拍列表    *********/

//竞拍列表
export function bidList(data: any) {
  return httpRequest({
    url: "/auction/list",
    method: "post",
    data,
  });
}

//获取航区
export function getClassification() {
  return httpRequest({
    url: "/cc/getClassification",
    method: "post",
  });
}
//获取规则
export function getAuctionRule() {
  return httpRequest({
    url: "/cc/getAuctionRule",
    method: "post",
  });
}


//私有上传图片
export function commonUploadImage(data: any) {
  return httpRequest({
    url: "/cc/uploadImg",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
//共有上传图片
export function uploadImgPublic(data: any) {
  return httpRequest({
    url: "/cc/uploadImgPublic",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
//私有上传视频
export function uploadVideo(data: any) {
  return httpRequest({
    url: "/cc/uploadVideo",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
//私有上传附件
export function uploadFilePrivate(data: any) {
  return httpRequest({
    url: "/cc/uploadFilePrivate",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
//提交
export function auctionSave(data: any) {
  return httpRequest({
    url: "/auction/save",
    method: "post",
    data,
  });
}
//编辑
export function edit(data: any) {
  return httpRequest({
    url: "/auction/edit",
    method: "post",
    data,
  });
}
//编辑新增数据
export function findAuctionPById(data: any) {
  return httpRequest({
    url: "/auction/findAuctionPById",
    method: "post",
    data,
  });
}
//申请终止
export function apply4Suspension(data: any) {
  return httpRequest({
    url: "/auction/apply4Suspension",
    method: "post",
    data,
  });
}
//申请取消终止
export function apply4CancelSuspension(data: any) {
  return httpRequest({
    url: "/auction/apply4CancelSuspension",
    method: "post",
    data,
  });
}

//操作日志
export function listLog(data: any) {
  return httpRequest({
    url: "/auction/listLog",
    method: "post",
    data,
  });
}


//竞价日志
export function listBidOrder(data: any) {
  return httpRequest({
    url: "/auction/listBidOrder",
    method: "post",
    data,
  });
}

//商派竞价日志导出
export function excelBidLog(data: any) {
  return httpRequest({
    url: "/auction/excelBidLog",
    method: "post",
    data,
    responseType: 'blob'
  });
}
//撤价列表
export function listWithdrawBidOrder(data: any) {
  return httpRequest({
    url: "/auction/listWithdrawBidOrder",
    method: "post",
    data,
  });
}
//附件下载详情
export function listAttachmentDownloadLog(data: any) {
  return httpRequest({
    url: "/auction/listAttachmentDownloadLog",
    method: "post",
    data,
  });
}
//撤回
export function apply4Withdraw(data: any) {
  return httpRequest({
    url: "/auction/apply4Withdraw",
    method: "post",
    data,
  });
}


//发布
export function fabu(data: any) {
  return httpRequest({
    url: "/auction/fabu",
    method: "post",
    data,
  });
}
//撤价审批通过
export function withdrawPriceOK(data: any) {
  return httpRequest({
    url: "/auction/withdrawPriceOK",
    method: "post",
    data,
  });
}
//撤价审批拒绝
export function withdrawPriceNo(data: any) {
  return httpRequest({
    url: "/auction/withdrawPriceNo",
    method: "post",
    data,
  });
}
//撤回价格
export function withdrawPrice(data: any) {
  return httpRequest({
    url: "/auction/withdrawPrice",
    method: "post",
    data,
  });
}




// 罚没列表
export function judicialList(data: any) {
  return httpRequest({
    url: "/judicial/list",
    method: "post",
    data,
  });
}
// 罚没列表新增
export function judicialSave(data: any) {
  return httpRequest({
    url: "/judicial/save",
    method: "post",
    data,
  });
}

// 罚没列表修改
export function judicialEdit(data: any) {
  return httpRequest({
    url: "/judicial/edit",
    method: "post",
    data,
  });
}

// 罚没列表详情
export function findJudicialPById(data: any) {
  return httpRequest({
    url: "/judicial/findJudicialPById",
    method: "post",
    data,
  });
}
// 罚没列表终止
export function judicialApply4Suspension(data: any) {
  return httpRequest({
    url: "/judicial/apply4Suspension",
    method: "post",
    data,
  });
}
// 罚没列表取消终止
export function judicialApply4CancelSuspension(data: any) {
  return httpRequest({
    url: "/judicial/apply4CancelSuspension",
    method: "post",
    data,
  });
}

// 罚没列表撤回
export function judicialApply4Withdraw(data: any) {
  return httpRequest({
    url: "/judicial/apply4Withdraw",
    method: "post",
    data,
  });
}

// 罚没列表发布
export function judicialfabu(data: any) {
  return httpRequest({
    url: "/judicial/fabu",
    method: "post",
    data,
  });
}
// 罚没操作日志
export function judicialListLog(data: any) {
  return httpRequest({
    url: "/judicial/listLog",
    method: "post",
    data,
  });
}

// 罚没竞价日志
export function judicialListBidOrder(data: any) {
  return httpRequest({
    url: "/judicial/listBidOrder",
    method: "post",
    data,
  });
}
//罚没竞价日志导出
export function judicialExcelBidLog(data: any) {
  return httpRequest({
    url: "/judicial/excelBidLog",
    method: "post",
    data,
    responseType: 'blob'
  });
}
// 罚没附件下载详情
export function judicialListAttachmentDownloadLog(data: any) {
  return httpRequest({
    url: "/judicial/listAttachmentDownloadLog",
    method: "post",
    data,
  });
}









//竞拍详情
export function bidDetail(data: any) {
  return httpRequest({
    url: "/bid/bidDetail",
    method: "post",
    data,
  });
}
//竞拍规则
export function listRule(data: any) {
  return httpRequest({
    url: "/rc/listRule",
    method: "post",
    data,
  });
}
//竞拍规则新增
export function saveRule(data: any) {
  return httpRequest({
    url: "/rc/saveRule",
    method: "post",
    data,
  });
}
//竞拍规则删除
export function deleteRule(data: any) {
  return httpRequest({
    url: "/rc/deleteRule",
    method: "post",
    data,
  });
}
//竞拍规则编辑
export function editRule(data: any) {
  return httpRequest({
    url: "/rc/editRule",
    method: "post",
    data,
  });
}
//竞拍规则查询详情
export function findRuleById(data: any) {
  return httpRequest({
    url: "/rc/findRuleById",
    method: "post",
    data,
  });
}

//二次审核商拍
export function listEC(data: any) {
  return httpRequest({
    url: "/auction/listEC",
    method: "post",
    data,
  });
}
//二次审核商拍通过
export function passEC(data: any) {
  return httpRequest({
    url: "/auction/passEC",
    method: "post",
    data,
  });
}

//二次审核商拍拒绝
export function rejectEC(data: any) {
  return httpRequest({
    url: "/auction/rejectEC",
    method: "post",
    data,
  });
}
//二次审核商拍导出
export function excelECList(data: any) {
  return httpRequest({
    url: "/auction/excelECList",
    method: "post",
    data,
    responseType: 'blob'
  });
}

//二次审核罚没
export function judicialListEC(data: any) {
  return httpRequest({
    url: "/judicial/listEC",
    method: "post",
    data,
  });
}
//二次审核罚没通过
export function judicialPassEC(data: any) {
  return httpRequest({
    url: "/judicial/passEC",
    method: "post",
    data,
  });
}

//二次审核罚没拒绝
export function judicialRejectEC(data: any) {
  return httpRequest({
    url: "/judicial/rejectEC",
    method: "post",
    data,
  });
}

//二次审核罚没导出
export function judicialExcelECList(data: any) {
  return httpRequest({
    url: "/judicial/excelECList",
    method: "post",
    data,
    responseType: 'blob'
  });
}


//商拍优先购买权
export function listBondOrderPriority(data: any) {
  return httpRequest({
    url: "/apbo/listBondOrderPriority",
    method: "post",
    data,
  });
}
//商拍优先购买拒绝
export function rejectPriority(data: any) {
  return httpRequest({
    url: "/apbo/rejectPriority",
    method: "post",
    data,
  });
}

//商拍优先购买通过
export function passPriority(data: any) {
  return httpRequest({
    url: "/apbo/passPriority",
    method: "post",
    data,
  });
}

//商拍优先购买查看文件
export function checkDatePriority(data: any) {
  return httpRequest({
    url: "/apbo/checkDatePriority",
    method: "post",
    data,
  });
}
//商拍优先购买导出
export function excelBondOrderPriority(data: any) {
  return httpRequest({
    url: "/apbo/excelBondOrderPriority",
    method: "post",
    data,
    responseType: 'blob'
  });
}




//罚没优先购买权
export function jpboListBondOrderPriority(data: any) {
  return httpRequest({
    url: "/jpbo/listBondOrderPriority",
    method: "post",
    data,
  });
}
//罚没优先购买拒绝
export function jpboRejectPriority(data: any) {
  return httpRequest({
    url: "/jpbo/rejectPriority",
    method: "post",
    data,
  });
}

//罚没优先购买通过
export function jpboPassPriority(data: any) {
  return httpRequest({
    url: "/jpbo/passPriority",
    method: "post",
    data,
  });
}
//罚没优先购买查看文件
export function jpboCheckDatePriority(data: any) {
  return httpRequest({
    url: "/jpbo/checkDatePriority",
    method: "post",
    data,
  });
}

//罚没优先购买导出
export function jpboExcelBondOrderPriority(data: any) {
  return httpRequest({
    url: "/jpbo/excelBondOrderPriority",
    method: "post",
    data,
    responseType: 'blob'
  });
}

/***********    拍卖师    *********/
//项目列表查询
export function findHostRecord(data: any) {
  return httpRequest({
    url: "/auctioneer/findHostRecord",
    method: "post",
    data,
  });
}
//项目列表查询
export function listRecord(data: any) {
  return httpRequest({
    url: "/auctioneer/listRecord",
    method: "post",
    data,
  });
}
// //获取完整常用语列表

export function getMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/getMsg",
    method: "post",
    data,
  });
}
//获取完整主持人列表
export function getAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/getAuctioneer",
    method: "post",
    data,
  });
}
//项目列表主持
export function hostAuction(data: any) {
  return httpRequest({
    url: "/auctioneer/hostAuction",
    method: "post",
    data,
  });
}
//项目列表主持
export function editHostRecord(data: any) {
  return httpRequest({
    url: "/auctioneer/editHostRecord",
    method: "post",
    data,
  });
}

// //项目列表主持撤回
export function recall(data: any) {
  return httpRequest({
    url: "/auctioneer/recall",
    method: "post",
    data,
  });
}
// //项目列表主持取消置顶
export function cancelTop(data: any) {
  return httpRequest({
    url: "/auctioneer/cancelTop",
    method: "post",
    data,
  });
}
// //项目列表主持取消置顶
export function top(data: any) {
  return httpRequest({
    url: "/auctioneer/top",
    method: "post",
    data,
  });
}


//常用语列表
export function listMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/listMsg",
    method: "post",
    data,
  });
}
//常用语新增
export function saveMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/saveMsg",
    method: "post",
    data,
  });
}
//常用语编辑
export function editMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/editMsg",
    method: "post",
    data,
  });
}
//常用语删除
export function deleteMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/deleteMsg",
    method: "post",
    data,
  });
}
//常用语查询
export function findMsg(data: any) {
  return httpRequest({
    url: "/auctioneer/findMsg",
    method: "post",
    data,
  });
}




//主持人管理
export function listAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/listAuctioneer",
    method: "post",
    data,
  });
}
//主持人新增
export function saveAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/saveAuctioneer",
    method: "post",
    data,
  });
}

//主持人编辑
export function editAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/editAuctioneer",
    method: "post",
    data,
  });
}
//主持人删除
export function deleteAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/deleteAuctioneer",
    method: "post",
    data,
  });
}

//主持人详情
export function findAuctioneer(data: any) {
  return httpRequest({
    url: "/auctioneer/findAuctioneer",
    method: "post",
    data,
  });
}




/***********    公告列表    *********/

//公告列表
export function Notchlist(data: any) {
  return httpRequest({
    url: "/nc/list",
    method: "post",
    data,
  });
}


//公告列表编辑
export function editNotice(data: any) {
  return httpRequest({
    url: "/nc/editNotice",
    method: "post",
    data,
  });
}
//公告列表查看
export function findNoticeById(data: any) {
  return httpRequest({
    url: "/nc/findNoticeById",
    method: "post",
    data,
  });
}
//公告列表删除
export function deleteNotice(data: any) {
  return httpRequest({
    url: "/nc/deleteNotice",
    method: "post",
    data,
  });
}


/***********    财务管理    *********/

//竞拍商拍保证金列表
export function listBondOrder(data: any) {
  return httpRequest({
    url: "/apbo/listBondOrder",
    method: "post",
    data,
  });
}
//竞拍商拍保证金列表通过
export function apboPassPriority(data: any) {
  return httpRequest({
    url: "/apbo/pass",
    method: "post",
    data,
  });
}
//竞拍商拍保证金列表拒绝
export function apboReject(data: any) {
  return httpRequest({
    url: "/apbo/reject",
    method: "post",
    data,
  });
}

//竞拍商拍保证金列表退款
export function refund(data: any) {
  return httpRequest({
    url: "/apbo/refund",
    method: "post",
    data,
  });
}
//竞拍商拍保证金列表付款凭证
export function checkDate(data: any) {
  return httpRequest({
    url: "/apbo/checkDate",
    method: "post",
    data,
  });
}
//竞拍商拍保证金列表详情
export function checkTraInfo(data: any) {
  return httpRequest({
    url: "/apbo/checkTraInfo",
    method: "post",
    data,
  });
}
//竞拍商拍保证金列表导出
export function excelBondOrder(data: any) {
  return httpRequest({
    url: "/apbo/excelBondOrder",
    method: "post",
    data,
    responseType: 'blob'
  });
}



//竞拍罚没保证金列表
export function jpboListBondOrder(data: any) {
  return httpRequest({
    url: "/jpbo/listBondOrder",
    method: "post",
    data,
  });
}
//竞拍罚没保证金列表通过
export function jpboApboPassPriority(data: any) {
  return httpRequest({
    url: "/jpbo/pass",
    method: "post",
    data,
  });
}
//竞拍罚没保证金列表拒绝
export function jpboApboReject(data: any) {
  return httpRequest({
    url: "/jpbo/reject",
    method: "post",
    data,
  });
}

//竞拍罚没保证金列表退款
export function jpboRefund(data: any) {
  return httpRequest({
    url: "/jpbo/refund",
    method: "post",
    data,
  });
}
//竞拍罚没保证金列表付款凭证
export function jpboCheckDate(data: any) {
  return httpRequest({
    url: "/jpbo/checkDate",
    method: "post",
    data,
  });
}
//竞拍罚没保证金列表详情
export function jpboCheckTraInfo(data: any) {
  return httpRequest({
    url: "/jpbo/checkTraInfo",
    method: "post",
    data,
  });
}
//竞拍罚没保证金列表导出
export function jpboExcelBondOrder(data: any) {
  return httpRequest({
    url: "/jpbo/excelBondOrder",
    method: "post",
    data,
    responseType: 'blob'
  });
}

//商拍尾款
export function listOrder(data: any) {
  return httpRequest({
    url: "/apoc/listOrder",
    method: "post",
    data,
  });
}
//商拍尾款查看
export function apocCheckTraInfo(data: any) {
  return httpRequest({
    url: "/apoc/checkTraInfo",
    method: "post",
    data,
  });
}
//商拍尾款导出
export function excelOrder(data: any) {
  return httpRequest({
    url: "/apoc/excelOrder",
    method: "post",
    data,
    responseType: 'blob'
  });
}
//商拍尾款确认
export function arrived(data: any) {
  return httpRequest({
    url: "/apoc/arrived",
    method: "post",
    data
  });
}
//商拍尾款悔拍
export function repentance(data: any) {
  return httpRequest({
    url: "/apoc/repentance",
    method: "post",
    data
  });
}


//商拍尾款
export function jpoclistOrder(data: any) {
  return httpRequest({
    url: "/jpoc/listOrder",
    method: "post",
    data,
  });
}
//商拍尾款查看
export function jpocCheckTraInfo(data: any) {
  return httpRequest({
    url: "/jpoc/checkTraInfo",
    method: "post",
    data,
  });
}
//商拍尾款导出
export function jpocExcelOrder(data: any) {
  return httpRequest({
    url: "/jpoc/excelOrder",
    method: "post",
    data,
    responseType: 'blob'
  });
}
//商拍尾款确认
export function jpocArrived(data: any) {
  return httpRequest({
    url: "/jpoc/arrived",
    method: "post",
    data
  });
}
//商拍尾款悔拍
export function jpocRepentance(data: any) {
  return httpRequest({
    url: "/jpoc/repentance",
    method: "post",
    data
  });
}



/***********    报名管理    *********/

//商拍报名列表
export function listBondMaterial(data: any) {
  return httpRequest({
    url: "/apbo/listBondMaterial",
    method: "post",
    data,
  });
}
//商拍报名查看
export function checkBondMaterial(data: any) {
  return httpRequest({
    url: "/apbo/checkBondMaterial",
    method: "post",
    data,
  });
}
//商拍报名通过
export function passMaterial(data: any) {
  return httpRequest({
    url: "/apbo/passMaterial",
    method: "post",
    data,
  });
}
//商拍报名驳回
export function rejectMaterial(data: any) {
  return httpRequest({
    url: "/apbo/rejectMaterial",
    method: "post",
    data,
  });
}

//罚没报名列表
export function jpboListBondMaterial(data: any) {
  return httpRequest({
    url: "/jpbo/listBondMaterial",
    method: "post",
    data,
  });
}
//罚没报名查看
export function jpboCheckBondMaterial(data: any) {
  return httpRequest({
    url: "/jpbo/checkBondMaterial",
    method: "post",
    data,
  });
}
//罚没报名通过
export function jpboPassMaterial(data: any) {
  return httpRequest({
    url: "/jpbo/passMaterial",
    method: "post",
    data,
  });
}
//罚没报名通过
export function jpboRejectMaterial(data: any) {
  return httpRequest({
    url: "/jpbo/rejectMaterial",
    method: "post",
    data,
  });
}
